<template>
  <view class="_card-price">
    <text v-if="hasCoupon" class="after_coupon">券后</text>
    <text class="RMB">¥</text>
    <text>{{ value }}</text>
    <text v-if="showUpMark" class="_up">起</text>
  </view>
</template>

<script>
export default {
  name: 'CardPrice',
  components: {},
  props: {
    value: {
      type: String,
      default: ''
    },
    showUpMark: { // 是否显示起
      type: Boolean,
      default: false
    },
    hasCoupon: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {};
  },
  computed: {},
  created() {},
  watch: {},
  methods: {}
};
</script>

<style lang="scss" scoped>
._card-price{
  vertical-align: bottom;
  color: $uni-color-primary;
  font-size: 42px;
  font-weight: bold;
  .after_coupon{
    font-size: 28px;
  }
  .RMB{
    font-size: 28px;
    margin-right: 4px;
  }
  ._up{
    font-size: 24px;
  }
}
</style>
